home *** CD-ROM | disk | FTP | other *** search
/ Amiga Mag HDD Backup / Amiga Mag HDD Backup.zip / Amiga Mag HDD Backup / Alexander.img.bin / Alexander.img / ***9.11 All NEWer important / texts / Cameron⁄DOS 2 / ASCII next >
Text File  |  1983-05-04  |  6KB  |  79 lines

  1. P.O. Box 1933
  2. Ozona, TX 76943
  3.  
  4. A Tale of Two Dos's: Part II
  5.  
  6.  
  7. Last month I began an examination of AmigaDOS and MS-DOS. As I continue that examination, I would like to turn to several common commands used by both systems: DIR, COPY, DELETE, MAKEDIR, RENAME, and CD. I will examine the syntax of the commands for both systems, and I will assume that you are familiar with syntax structure. I will then point out the differences that exist.
  8. I don't know about you, but the command I use most is DIR, so let's begin with it. For AmigaDOS, the syntax is
  9.  
  10. DIR [<dir|pattern>] [OPT A|I|AI|D|F] [ALL] [DIRS] [FILES]
  11. [INTER]
  12.  
  13.  
  14. Basically, AmigaDOS will list all of the contents of a directory, both files and subdirectories, using this command. The directories will be listed first, in random order, followed by the files, listed in alphabetical order. The options allow you to display all subdirectories and their files [ALL option], display only directories [DIRS option], display only files [FILES option], and to enter an interactive listing mode [INTER option]. The interactive listing takes you into each directory and subdirectory and allows you to act upon files as you go.
  15. When you execute DIR from the MS-DOS prompt, all files and directories within the current directory are listed in what appears to me to be random order. There is no separation into files or directories, and items are not alphabetized. Although the syntax for DIR in MS-DOS is fairly long, I want to show it below:
  16.  
  17. DIR [drive:][path][filename] [/P][/W][/A[[:]attributes]]
  18. [/O[[:]sortorder]] [/S][/B][/L]
  19.  
  20. [drive:][path][filename]
  21. specifies drive, directory, and/or files to list.
  22. /PPauses after each screenful of information.
  23. /WUses wide list format.
  24. /ADisplays files with specified attributes.
  25. attributesD  DirectoriesR  Read-only files
  26. H  Hidden filesA  Files ready for
  27.  archiving
  28. S  System files-  Prefix meaning
  29.  "not"
  30. /OList by files in sorted order.
  31. sortorderN  By name S  By size (small-
  32.    (alphabetic)   est first.
  33. E  By extensionD By date & tiime
  34.    (alphabetic)   (earliest first)
  35. G  Group direct--  Prefix to reverse
  36.    ories first   order.
  37. /SDisplays files in specified directory and all
  38. subdirectories.
  39. /BUses bare format (no heading information or summary).
  40. /LUses lowercase.
  41.  
  42. Switches may be preset in the DIRCMD environment variable.
  43. Override preset switches by prefixing any switch with -
  44. (hyphen) -- for example, /-W.
  45.  
  46.  
  47. That is certainly a mouthful. Really, for what each does, AmigaDOS (A-DOS henceforth) DIR does about the same that MS-DOS does. Since A-DOS already alphabetizes its files, there is no need to summon a switch to do so as you must with MS-DOS. When I use MS-DOS, I always add the /O switch to order things unless I know that the directory I am looking at is fairly small. I don't have to do this with A-DOS. But MS-DOS does allow you to list files by date and size order, and I must admit that I like that very much. And, although not part of the DIR command, MS-DOS does allow you to "hide" files (make them invisible) while allowing you to list them with a DIR switch. Of course, this is only good if others sharing your machine are not very computer literate. And one more thing I like about MS-DOS is the /p switch, which causes the listing to pause at the end of each screen.
  48. As far as ease of use, the A-DOS version is better because you do not have to summon any options to separate files from directories. Also, the interactive mode is superb, especially when you are cleaning old files from your disk or doing other maintainence type work. I used this option extensively in the very first article I ever wrote for this magazine. That article concerned stripping down your boot disk, and this option allowed me to enter each directory/subdirectory and delete any files that were not absolutely necessary. An option to allow you to sort files and directories by date and size would certainly be a nice addition, though.
  49. The next command I want to examine is COPY. For A-DOS the syntax is 
  50.  
  51. COPY [FROM] {<name|pattern>} [TO] <name|pattern> [ALL] [QUIET]
  52. [BUF|BUFFER = <n>] [CLONE] [DATES] [NOPRO] [COM] [NOREQ}
  53.  
  54.  
  55. By using the ALL option, you can copy all subdirectories as well as files within a directory. The other options perform other little tasks not normally needed.
  56. The MS-DOS version of COPY has the following syntax:
  57.  
  58. COPY [/A | /B] source [/A | /B] [+ source [/A | /B]
  59. [+ ...]] [destination [/A \ /B]] [/V]
  60.  
  61. sourceSpecifies the file or files to be
  62. copies.
  63. /AIndicates an ASCII text file.
  64. /BIndicates a binary file.
  65. destination file(s)Specifies the directory and/or 
  66. filename for the new file(s).
  67. /VVerifies that new files are written
  68. correctly.
  69.  
  70. To append files, specify a single file for destination, but
  71. multiple files for source (using wildcards or file1+file2+
  72. file3 format).
  73.  
  74.  
  75. MS-DOS copy does about the same as A-DOS copy. It has a shortcoming, though. It will not copy subdirectories and their contents. To do this in MS-DOS, you must use another command called XCOPY (along with a couple of switches). However, you can combine files using COPY in MS-DOS, something you cannot do with the A-DOS version. In A-DOS, you use the JOIN command to accomplish this. 
  76. Now, how do we stand? As regards DIR, I prefer A-DOS when used in its bare form. However, with all the switches available in the MS-DOS version, it has more power overall. As regards the COPY command, A-DOS once again is my favorite in its bare form. However, the ability to combine files gives the MS-DOS version a slight advantage for those who need that option. 
  77. One more thing before closing for this month. Since I do normally use my Amiga more (it's at home), I am more comfortable with it. I tend to forget the syntax of MS-DOS commands, especially since when I do use an MS-DOS machine, I stay within Windows as much as possible. One thing I like about MS-DOS, though, is the complete syntax provided with the commands. You simply type the command in question, skip a space, then type "/?" and you receive a very detailed syntax, as illustrated in the two commands given above. In A-DOS, a cryptic looking template appears that remains a mystery except for experienced users. Such a thorough syntax would probably be quite helpful on Amigas for newcomers. 
  78. Next month, we will cover the remaining commands.
  79.